KERN_DIR :=/home/xujc/z7020/kernel/linux-xlnx-xilinx-v2018.3

obj-m :=noblockio.o

all:
	make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C  $(KERN_DIR) M=`pwd` modules
	arm-linux-gnueabihf-gcc keyApp.c -o keyApp.elf
	arm-linux-gnueabihf-gcc keyApp2.c -o keyApp2.elf	

clean:
	make -C $(KERN_DIR) M=`pwd` clean
	rm -rf keyApp.elf
	rm -rf keyApp2.elf	
